package sk.gtug.hackatlon.drunkdroid;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.hardware.SensorManager;
import android.os.Bundle;
import android.view.View;
import android.view.WindowManager;
import android.widget.Button;

public class Activity1Main extends Activity {
    private Button easy;
    private Button normal;
    private Button hard;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.screen1);

        easy = (Button) findViewById(R.id.buttonEasy);
        normal = (Button) findViewById(R.id.buttonNormal);
        hard = (Button) findViewById(R.id.buttonHard);

        easy.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent i = new Intent(view.getContext(), Activity1Game.class);
                i.putExtra("mode", "easy");
                startActivity(i);
            }
        });

        normal.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent i = new Intent(view.getContext(), Activity1Game.class);
                i.putExtra("mode", "normal");
                startActivity(i);
            }
        });

        hard.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent i = new Intent(view.getContext(), Activity1Game.class);
                i.putExtra("mode", "hard");
                startActivity(i);
            }
        });

    }
}